class JiNengTiao extends HTMLElement {

	constructor() {
		super()
		
		let shadow = this.attachShadow({ mode: 'open' })
	}
	
	connectedCallback() {
		this.style = `
			${this.style.cssText}
			position: absolute;
			left: 50%;
			bottom: 1rem;
			transform: translateX(-50%);
			display: flex;
			z-index: 2;
		`
	}
	
	shengChengJiNeng({ miaoShu, kuaiJieJian, xiangQing }) {
		let jiNengKuang = document.createElement('ji-neng-kuang')
		jiNengKuang.setAttribute('kuai-jie-jian', kuaiJieJian)
		jiNengKuang.setAttribute('ming-zi', miaoShu)
		jiNengKuang.setAttribute('xiang-qing', xiangQing)
		this.shadowRoot.appendChild(jiNengKuang)
	}
}

customElements.define('ji-neng-tiao', JiNengTiao)